package org.geoscrape.util;

import java.io.Serializable;

public class MatchEntry implements Serializable
{
	private static final long serialVersionUID = 7125031987957125809L;
	private boolean unknown;
	private int[] match;

	public MatchEntry(int[] match)
	{
		this.match = match;
	}

	@Override
	public boolean equals(Object other)
	{
		if (other instanceof MatchEntry)
		{
			MatchEntry otherMatch = (MatchEntry) other;
			for (int x = 0; x < match.length; x++)
			{
				if (match[x] != otherMatch.match[x])
				{
					return false;
				}
			}
			return true;
		}
		else
		{
			return false;
		}
	}

	public int[] getMatch()
	{
		return match;
	}

	/**
	 * @return the unknown
	 */
	public boolean isUnknown()
	{
		return unknown;
	}

	/**
	 * @param unknown the unknown to set
	 */
	public void setUnknown(boolean unknown)
	{
		this.unknown = unknown;
	}
}
